package com.wslds.bean.ext;

import java.util.List;

import com.wslds.base.util.Strings;
import com.wslds.bean.Article;
import com.wslds.bean.Type;

public class ArticleExt extends Article {

	private Long reviewCount;
	
	private List<TaginstExt> tagList;
	private Type type;
	
	private String types;
	private String dates;
	private String tags;
	private String ids;
	private String content4Simple;
	private String fullTitle;
	
	public List<TaginstExt> getTagList() {
		return tagList;
	}
	public void setTagList(List<TaginstExt> tagList) {
		this.tagList = tagList;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
		try{
		}catch( Exception e ){
			
		}
	}
	public String getTypes() {
		return types;
	}
	public void setTypes(String types) {
		this.types = types;
		try{
			this.setTypeId(Long.valueOf(types));
		}catch( Exception e ){
			this.setTypeId(null);
		}
	}
	public String getIds() {
		return ids;
	}
	public void setIds(String ids) {
		this.ids = ids;
	}
	public String getContent4Simple() {
		return content4Simple;
	}
	public void setContent4Simple(String content4Simple) {
		this.content4Simple = content4Simple;
	}
	public String getFullTitle() {
		return fullTitle;
	}
	public void setFullTitle(String fullTitle) {
		this.fullTitle = fullTitle;
	}
	public String getDates() {
		if( Strings.isNull(dates)){
			return null;
		}else{
			Long.valueOf(dates);
			return dates.substring(0, 4) + "-" + dates.substring(4);
		}
	}
	public void setDates(String dates) {
		this.dates = dates;
	}
	public Long getReviewCount() {
		return reviewCount;
	}
	public void setReviewCount(Long reviewCount) {
		this.reviewCount = reviewCount;
	}
	
}